"""
字符串
"""
a=15
b=12345678.1234567
s='I Love python!'
print('a= %05d' % a)
print('b = %8.3f' % b)
print(' %17s' % s)
print('%-17.6s' % s)

import time
scale = 10
print('-------执行开始--------')
for i in range(scale + 1):
    done ='**' * i
    undone ='..' * (scale - i)
    percent = i / scale
    #格式化输出
    print('{:>4.0%}[{}->{}]'.format(percent, done, undone))
    time.sleep(0.1)
print('-------执行结束--------')

strs ='Rain falls  on field and  tree.'
print(strs)
split_strs = strs.split()
print(split_strs)
jojn_strs =''.join(split_strs)
print(jojn_strs)


